import request from '@/utils/http/http'

// 发送验证码
export const reqSendCode = (phone) => {
  return request.get(`/user/passport/sendCode/${phone}`)
}

// 注册
export const reqRegister = (data) => {
  return request.post('/user/passport/register', data)
}

// 登录
export const reqLogin = (phone, password) => {
  return request.post('/user/passport/login', {
    phone,
    password
  })
}
// 退出登录
export const reqLogout = () => {
  return request.get('/user/passport/logout')
}
